package com.rockcent.mall.lib.dto;

import com.rockcent.common.domain.DtoEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;

/**
 * Created by DK on 16/12/12.
 */
public class MerchantWithdrawDto extends DtoEntity{

    //平台ID
    private Long mallId;

    //申请提现人ID
    private Long merchantId;

    //申请人
    private String merchantName;

    //提现金额
    private BigDecimal amount;

    //银行名称
    private String bankName;

    //银行卡号
    private String bankNo;

    //开户名
    private String bankAccountName;

    //提现状态
    private String status;

    //备注
    private String remark;

    //开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String beginDate;

    //结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String endDate;

    //最大金额
    private BigDecimal maxAmount;

    //最小金额
    private BigDecimal minAmount;

    //转账凭证URL
    private String certificateUrl;

    //交易流水号 提现成功,才有值
    private String transactionId;

    //提现帐号信息
    private String bankInfo;

    private String bankBranchName;

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public Long getMerchantId() {

        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankNo() {
        return bankNo;
    }

    public void setBankNo(String bankNo) {
        this.bankNo = bankNo;
    }

    public String getBankAccountName() {
        return bankAccountName;
    }

    public void setBankAccountName(String bankAccountName) {
        this.bankAccountName = bankAccountName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public BigDecimal getMaxAmount() {
        return maxAmount;
    }

    public void setMaxAmount(BigDecimal maxAmount) {
        this.maxAmount = maxAmount;
    }

    public BigDecimal getMinAmount() {
        return minAmount;
    }

    public void setMinAmount(BigDecimal minAmount) {
        this.minAmount = minAmount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCertificateUrl() {
        return certificateUrl;
    }

    public void setCertificateUrl(String certificateUrl) {
        this.certificateUrl = certificateUrl;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public String getBankInfo() {
        return bankInfo;
    }

    public void setBankInfo(String bankInfo) {
        this.bankInfo = bankInfo;
    }

    public String getBankBranchName() {
        return bankBranchName;
    }

    public void setBankBranchName(String bankBranchName) {
        this.bankBranchName = bankBranchName;
    }

    @Override
    public String toString() {
        return "MerchantWithdrawDto{" +
                "mallId=" + mallId +
                ", merchantId=" + merchantId +
                ", merchantName='" + merchantName + '\'' +
                ", amount=" + amount +
                ", id=" + id +
                ", bankName='" + bankName + '\'' +
                ", createdAt=" + createdAt +
                ", bankNo='" + bankNo + '\'' +
                ", updatedAt=" + updatedAt +
                ", dateCreated=" + dateCreated +
                ", bankAccountName='" + bankAccountName + '\'' +
                ", lastUpdated=" + lastUpdated +
                ", status='" + status + '\'' +
                ", pageNo=" + pageNo +
                ", remark='" + remark + '\'' +
                ", pageSize=" + pageSize +
                ", orderBy='" + orderBy + '\'' +
                ", xsc='" + xsc + '\'' +
                ", beginDate='" + beginDate + '\'' +
                ", endDate='" + endDate + '\'' +
                ", maxAmount=" + maxAmount +
                ", minAmount=" + minAmount +
                ", certificateUrl='" + certificateUrl + '\'' +
                ", transactionId='" + transactionId + '\'' +
                ", bankInfo='" + bankInfo + '\'' +
                ", bankBranchName='" + bankBranchName + '\'' +
                '}';
    }
}
